package com.onpositive.wiki2.miner;

import java.util.ArrayList;

public class CompositeVisitor extends AbstractWikiPediaVisitor{

	ArrayList<AbstractWikiPediaVisitor>mw=new ArrayList<AbstractWikiPediaVisitor>();
	
	public boolean add(AbstractWikiPediaVisitor arg0) {
		return mw.add(arg0);
	}

	public boolean remove(AbstractWikiPediaVisitor arg0) {
		return mw.remove(arg0);
	}

	@Override
	protected void onPage(Page page) {
		for (AbstractWikiPediaVisitor w:mw){
			w.onPage(page);
		}
	}

}
